﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using CodeTunnel.MvcUtilities.Utilities;

namespace CodeTunnel.MvcUtilities.Helpers
{
    /// <summary>
    /// A library of useful UrlHelpers.
    /// </summary>
    public static class UrlHelpers
    {
        /// <summary>
        /// Transforms a string into a human-readable, URL friendly string.
        /// </summary>
        /// <param name="helper">The current HtmlHelper.</param>
        /// <param name="text">The text to be transformed.</param>
        /// <returns>string</returns>
        public static string ToFriendlyUrl(this UrlHelper helper, string text)
        {
            return CommonUtils.CreateFriendlyUrl(text);
        }
    }
}
